package com.zpp.wedding_admin.mapper;

import com.zpp.wedding_admin.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.mapstruct.Mapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 朱盼盼
 * @since 2022-12-29
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    int setUserForbid(String id);

    int setUserRelease(String id);

    boolean deleteAllSelect(Integer[] ids);

    boolean goodAdd(String userId);

    boolean goodSubtract(String userId);

    boolean collectSubtract(String userId);

    boolean collectAdd(String userId);

    boolean followSubtract(String oneId);

    boolean fanSubtract(String twoId);

    boolean followAdd(String oneId);

    boolean fanAdd(String twoId);

    boolean JoinNumAdd(Integer id);
}
